import { combineReducers, legacy_createStore, Store } from 'redux';
// import thunk from 'redux-thunk';
import setIsCloseBtnReducer from './modules/ctrlNavi/reducer';
import setRouterTags from './modules/routeTag/reducer';

// 创建reducer（拆分renducer）
const reducer = combineReducers({
  setIsCloseBtn: setIsCloseBtnReducer,
  setRouteTags: setRouterTags
});

// 使用redux 中间件
// const middleWares = applyMiddleware(thunk);
// 创建 store
const store: Store = legacy_createStore(reducer);

export { store };
